package com.cgc.venus.server.core.bean.response;
/**
 * 异常响应, 消息将封装至返回json的meta中
 * @author 业哥
 */
public class VenusExceptionResponse {
    private Meta meta;
    public VenusExceptionResponse() {
    }
    public VenusExceptionResponse(Meta meta) {
        this.meta = meta;
    }
    public static VenusExceptionResponse create(Integer code, String message) {
        Meta exceptionMeta = new Meta(code, message);
        return new VenusExceptionResponse(exceptionMeta);
    }
    public Meta getMeta() {
        return meta;
    }
    public void setMeta(Meta meta) {
        this.meta = meta;
    }
}